package com.Service;

import com.Dao.HeadImageDao;
import com.pojo.HeadImage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service
@Slf4j
public class HeadImageService {
    @Autowired
    private HeadImageDao headImageDao;
    public List<HeadImage> loadHeadImage(String username) throws SQLException {
       return  headImageDao.loadHeadImage(username);
    }
    public void updateMyHeadImage(String username,String ImageUrl) throws SQLException {
         headImageDao.updateMyHeadImage(username,ImageUrl);
    }
}
